New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Impossible to change the color of the material passed in shipout/background #4
Comments
It will work in the next LaTeX version (it already works with lualatex-dev). |
With \documentclass{article}
\usepackage{luacolor}
\usepackage[paperheight=2cm,paperwidth=3cm]{geometry}
\ExplSyntaxOn
\AddToHook{shipout/background}
{%
\put(0.5\paperwidth,-0.5\paperheight)
{%
\makebox[0pt][c]{
\color_fill:n {red}
RED?
\color{red}
RED!
}
}%
}
\ExplSyntaxOff
\begin{document}
\mbox{}
\end{document} |
luacolor doesn't work with l3color at all currently. That is a unrelated issue. |
OK. I guess it is useless to open a feature request for this 😄 |
@dbitouze well you can play around with this here. That is only temporary, we will have to discuss how to integrate this properly.
|
Thanks! But, unfortunately:
|
Ah, sorry. Load expl3 and the backend first. E.g. with \usepackage{expl3}. My documents actually all start with this
|
Works nicely now. Is there any reason for |
Interestingly, as far as
\documentclass{article}
\usepackage{luacolor}
\paperheight=2cm
\paperwidth=3cm
\ExplSyntaxOn
\AddToHook{shipout/background}
{%
\put(0.5\paperwidth,-0.5\paperheight)
{%
\makebox[0pt][c]{
\color_fill:n {red}
RED?
\color{red}
RED!
}
}%
}
\ExplSyntaxOff
\begin{document}
\mbox{}
\end{document} |
| Interestingly, as far as l3color's \color_fill:n is concerned, the following MCE compiled with lualatex: untested but quite possible. Don't forget that in older LaTeX luacolor didn't work in |
We have some work in a branch that will add Lua-based color to the core |
this issue is resolved. The l3color question should go elsewhere. |
Done here. |
The
luacolor
package makes impossible to change the colour of the material passed in "shipout/background", as shown in the following example, which typesets "DRAFT":luacolor
is not called ;The text was updated successfully, but these errors were encountered: